<script>
	var pnum = {$pnum};
	{if condition="(isset($filter)) AND ($filter)"}
	var filter = {$filter};
	{/if}
	{if condition="(!isset($search)) OR (!$search)"}
	var search = 0;
	var goUrl = "/{$Request.module}/shop_detail/lst/filter/"+filter+".html?page="+pnum;
	{else/}
	var search = {$search};
	var goUrl = "/{$Request.module}/shop_detail/search.html?page="+pnum;
	{/if}

</script>
                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th style="width:15%">时间</th>
                                    <th style="width:15%">收入/支出</th>
                                    <th style="width:15%">渠道</th>
                                    <th style="width:20%">金额</th>
                                    <th>平台服务费</th>
                                    <th style="width:20%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            {if condition="$list->isEmpty() == false"}
							{foreach name="list" item="v"} 
                                <tr>
                                    <td>{:date('Y-m-d H:i:s',$v['time'])}</td>
                                    <td>{if condition="$v['de_type'] eq 1"}收入{elseif condition="$v['de_type'] eq 2"/}支出{/if}</td>
                                    <td>
                                    {if condition="$v['de_type'] eq 1"}
                                    {switch name="v.sr_type"}
                                    {case value="1"}订单完成{/case}
                                    {/switch}
                                    {elseif condition="$v['de_type'] eq 2"/}
                                    {switch name="v.zc_type"}
                                    {case value="1"}提现{/case}
                                    {/switch}
                                    {/if}
                                    </td>
                                    <td>{$v.price}</td>
                                    <td>{if condition="!empty($v.service_charge)"}{$v.service_charge}{else}-{/if}</td>
                                    <td><button type="button" class="btn btn-primary btn-xs" onclick="getmxinfo({$v.id},this);"><i class="fa fa-pencil"></i>&nbsp;查看详细</button></td>
                                </tr>
							{/foreach}
							{else/}
							<tr><td colspan="5" style="text-align:center; font-size:14px;">没有找到相关数据</td></tr>
							{/if}						
                            </tbody>
                        </table>
                        <div class="row"><div class="pagination" style="float:right; margin-right:20px;">{$page}</div></div>